package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.FaqReplyDevice;
import com.xjscrm.common.entity.OperatePlanDevice;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FaqReplyDeviceMapper {
    int deleteById(Long id);

    int insert(FaqReplyDevice record);

    int insertSelective(FaqReplyDevice record);

    FaqReplyDevice selectById(Long id);

    FaqReplyDevice selectByTaskIdAndDeviceUniqueId(@Param("taskId") Long taskId, @Param("deviceUniqueId") Long deviceUniqueId);

    List<FaqReplyDevice> selectByDeviceUniqueId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("merId") Long merId);

    int updateByIdSelective(FaqReplyDevice record);

    int updateById(FaqReplyDevice record);
}